package com.example.decorator;

/**
 * @version 1.0.0
 * @className: DecoratorTest
 * @description:
 * @author: rosszhang
 * @date: 2022/5/13 10:13
 */
public class DecoratorTest {
    public static void main(String[] args) {
        Food food = new Bread(new Vegetable(new Cream(new Food("香肠"))));
        System.out.println(food.make());
    }
}
